package org.example.lease.model.entities;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Schema(description = "公寓&配套关系")
@TableName(value = "apartment_facility")
@Data
//@Builder 是 Lombok 提供的一个注解，用于自动生成建造者模式（Builder Pattern）的相关代码,可以通过链式调用的方式创建实体对象
@Builder
@EqualsAndHashCode(callSuper = true)

public class ApartmentFacility extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "公寓id")
    @TableField(value = "apartment_id")
    private Long apartmentId;

    @Schema(description = "设施id")
    @TableField(value = "facility_id")
    private Long facilityId;

}